package com.lovo.atm.bean;

import java.time.LocalDate;

public class HistoryRecordBean {
    private UserBean user;
    private String description;
    private LocalDate date = LocalDate.now();
    private double account;

    public HistoryRecordBean(){}

    public HistoryRecordBean(String description , double money , String code ){
        this.description=description;
        this.account=money;
        user = new UserBean();
        user.setName(code);

    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getAccount() {
        return account;
    }

    public void setAccount(double account) {
        this.account = account;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public UserBean getUser() {
        return user;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "HistoryRecordBean{" +
                "user=" + user +
                ", description='" + description + '\'' +
                ", date=" + date +
                ", account=" + account +
                "}\n";
    }
}
